#include"RBTree.h"
#include"AVLTree.h"
#include<vector>
int main()
{
	const int N = 10;
	vector<int> v;
	v.reserve(N);
	srand(time(0));

	for (size_t i = 0; i < N; i++)
	{
		v.push_back(i);
	}

	RBTree<int> rbt;
	for (auto e : v)
	{
		rbt.Insert(e);
		//cout << "Insert:" << e << "->" << t.IsBalance() << endl;
	}
	cout << rbt.IsValidRBTRee() << endl;
	auto cur = rbt.begin();
	while (cur != rbt.end()) {
		cout << *cur << "  ";
		++cur;
	}
	cout << endl;
	for (auto e : rbt) {
		cout << e << "  ";
	}
	cout << endl;
	return 0;
}